SWEP.PrintName = "Spawn tool"
 
//Sets the position of the weapon in the switching menu 
//(appears when you use the scroll wheel or keys 1-6 by default)
SWEP.Slot = 2
SWEP.SlotPos = 1
 
//Sets drawing the ammuntion levels for this weapon
SWEP.DrawAmmo = false
 
//Sets the drawing of the crosshair when this weapon is deployed
SWEP.DrawCrosshair = false

spawnPoints = {}

function SWEP:AddSpawnPoints(data)
	table.insert(spawnPoints, data)
	local pos = LocalPlayer():GetPos();
	local ang = LocalPlayer():GetAngles();
 
	cam.Start3D( pos + ang:Forward() * 32 + ang:Up() * 8, LocalPlayer():EyeAngles() );
 
	draw.RoundedBox( 8, 50, 50, 100, 100, Color( 255, 255, 255 ) );
 
	cam.End3D();
end
usermessage.Hook( "SpawnPoint", SWEP.AddSpawnPoints )
hook.Add( "HUDPaint", "DrawDots", SWEP.AddSpawnPoints )